using System;
using System.Data.Linq;
namespace GameSPK
{
    partial class General
    {
        public override string ToString()
        {
            return this.GhiChu.Trim();
        }
        public General(General cuocthiroot, string note, DateTime? datestart)
        {
            this._PhanThi_CuocThis = new EntitySet<PhanThi_CuocThi>(new Action<PhanThi_CuocThi>(this.attach_PhanThi_CuocThis), new Action<PhanThi_CuocThi>(this.detach_PhanThi_CuocThis));
            this._CauHoi_CuocChois = new EntitySet<CauHoi_CuocChoi>(new Action<CauHoi_CuocChoi>(this.attach_CauHoi_CuocChois), new Action<CauHoi_CuocChoi>(this.detach_CauHoi_CuocChois));
            this._NguoiChoi_CuocThis = new EntitySet<NguoiChoi_CuocThi>(new Action<NguoiChoi_CuocThi>(this.attach_NguoiChoi_CuocThis), new Action<NguoiChoi_CuocThi>(this.detach_NguoiChoi_CuocThis));
            OnCreated();
            this.Banner = cuocthiroot.Banner;
            this.CauHinh = cuocthiroot.CauHinh;
            this.Chon = false;
            this.GhiChu = note;
            this.ImageBackground = cuocthiroot.ImageBackground;
            this.isRoot = false;
            this.isStart = false;
            this.MaCuocChoi = Helper.GenerateKey();
            this.NgayBatDau = datestart;
            this.SoNguoiChoi = cuocthiroot.SoNguoiChoi;
            this.SoPhanChoi = cuocthiroot.SoPhanChoi;
        }
    }

    partial class ChuDe
    {
        public override string ToString()
        {
            return TenCD;
        } 

    }

    partial class PhanThi
    {
        public override string ToString()
        {
            return TenPT;
        }
    }

    partial class DBTroChoiDataContext
    {
    }
}
